package com.tucc.hello.leetcode.no1_400.no1_200.no81_100.no81;

/**
 * @author tucc
 * @description todo
 * @package com.tucc.hello.leetcode
 * @date 2021/5/20
 **/
public class Solution {

    public static void main(String[] args) {
        Solution solution = new Solution();
        int[] nums = {2, 5, 6, 0, 0, 1, 2};
        int target = 3;
        System.out.println(solution.search(nums, target));
    }

    public boolean search(int[] nums, int target) {
        for (int num : nums) {
            if (target == num) {
                return true;
            }
        }
        return false;
    }
}
